package com.ruoyi.partybuilding.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.partybuilding.mapper.TeamPersonMapper;
import com.ruoyi.partybuilding.domain.TeamPerson;
import com.ruoyi.partybuilding.service.ITeamPersonService;

/**
 * 班子成员Service业务层处理
 * 
 * @author he-liangliang@outlook.com
 * @date 2024-11-27
 */
@Service
public class TeamPersonServiceImpl implements ITeamPersonService 
{
    @Autowired
    private TeamPersonMapper teamPersonMapper;

    /**
     * 查询班子成员
     * 
     * @param id 班子成员主键
     * @return 班子成员
     */
    @Override
    public TeamPerson selectTeamPersonById(Long id)
    {
        return teamPersonMapper.selectTeamPersonById(id);
    }

    /**
     * 查询班子成员列表
     * 
     * @param teamPerson 班子成员
     * @return 班子成员
     */
    @Override
    public List<TeamPerson> selectTeamPersonList(TeamPerson teamPerson)
    {
        return teamPersonMapper.selectTeamPersonList(teamPerson);
    }

    /**
     * 新增班子成员
     * 
     * @param teamPerson 班子成员
     * @return 结果
     */
    @Override
    public int insertTeamPerson(TeamPerson teamPerson)
    {
        return teamPersonMapper.insertTeamPerson(teamPerson);
    }

    /**
     * 修改班子成员
     * 
     * @param teamPerson 班子成员
     * @return 结果
     */
    @Override
    public int updateTeamPerson(TeamPerson teamPerson)
    {
        return teamPersonMapper.updateTeamPerson(teamPerson);
    }

    /**
     * 批量删除班子成员
     * 
     * @param ids 需要删除的班子成员主键
     * @return 结果
     */
    @Override
    public int deleteTeamPersonByIds(Long[] ids)
    {
        return teamPersonMapper.deleteTeamPersonByIds(ids);
    }

    /**
     * 删除班子成员信息
     * 
     * @param id 班子成员主键
     * @return 结果
     */
    @Override
    public int deleteTeamPersonById(Long id)
    {
        return teamPersonMapper.deleteTeamPersonById(id);
    }
}
